package com.yty.system.controller;

import com.yty.system.entity.vo.R;
import com.yty.system.service.MessageService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/message")
@Api(tags = "消息管理API")
public class MessageController {

    @Autowired
    private MessageService messageService;

    @GetMapping("sendMessage")
    @ApiOperation(value = "发送消息测试",notes = "发送消息测试")
    public R sendMessage(){
        messageService.sendMessage();
        return R.ok(null);
    }
}
